package com.stormrage.entity.ent;

import java.io.Serializable;

public class EntEnterprise implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -367937324996420533L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private String enterprise;

	private String phone;

	private String email;

	// ------------------------------- Fields -------------------------------

	public EntEnterprise() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getEnterprise() {
		return enterprise;
	}

	public void setEnterprise(String enterprise) {
		this.enterprise = enterprise;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	// ------------------------------- Fields -------------------------------

	public static EntEnterprise instance(String enterprise, String phone, String email) {
		EntEnterprise entity = new EntEnterprise();
		entity.setEnterprise(enterprise);
		entity.setPhone(phone);
		entity.setEmail(email);
		return entity;
	}

	public static EntEnterprise instance(EntEnterprise entity, String phone, String email) {
		entity.setPhone(phone);
		entity.setEmail(email);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " enterprise - " + enterprise + " phone - " + phone + " email - "
				+ email;
	}

}
